class Solution(object):
    def busyStudent(self, startTime, endTime, queryTime):
        ans = 0
        for i in range(len(startTime)):
            ans += startTime[i] <= queryTime <= endTime[i]
        return ans